/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.ekuma.epos.bean.util;

import com.openbravo.format.Formats;

import com.openbravo.bean.InventoryRecord;

/**
 *
 * @author Administrator
 */
public class InventoryRecordHelper {

     public static String printDate(InventoryRecord i) {
        return Formats.TIMESTAMP.formatValue(i.getDate());
    }
    public static String printLocation(InventoryRecord i) {
        return i.getLocation().toString();
    }
    public static String printSubTotal(InventoryRecord i) {
        return Formats.CURRENCY.formatValue(new Double(i.getSubTotal()));
    }
}
